Optimal. Leaf size=80 \[ -\frac {35 \cot ^3(a+b x)}{24 b}+\frac {35 \cot (a+b x)}{8 b}+\frac {\cos ^4(a+b x) \cot ^3(a+b x)}{4 b}+\frac {7 \cos ^2(a+b x) \cot ^3(a+b x)}{8 b}+\frac {35 x}{8} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {2591, 288, 302, 203} \[ -\frac {35 \cot ^3(a+b x)}{24 b}+\frac {35 \cot (a+b x)}{8 b}+\frac {\cos ^4(a+b x) \cot ^3(a+b x)}{4 b}+\frac {7 \cos ^2(a+b x) \cot ^3(a+b x)}{8 b}+\frac {35 x}{8} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 288
Rule 302
Rule 2591
Rubi steps
\begin {align*} \int \cos ^4(a+b x) \cot ^4(a+b x) \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {x^8}{\left (1+x^2\right )^3} \, dx,x,\cot (a+b x)\right )}{b}\\ &=\frac {\cos ^4(a+b x) \cot ^3(a+b x)}{4 b}-\frac {7 \operatorname {Subst}\left (\int \frac {x^6}{\left (1+x^2\right )^2} \, dx,x,\cot (a+b x)\right )}{4 b}\\ &=\frac {7 \cos ^2(a+b x) \cot ^3(a+b x)}{8 b}+\frac {\cos ^4(a+b x) \cot ^3(a+b x)}{4 b}-\frac {35 \operatorname {Subst}\left (\int \frac {x^4}{1+x^2} \, dx,x,\cot (a+b x)\right )}{8 b}\\ &=\frac {7 \cos ^2(a+b x) \cot ^3(a+b x)}{8 b}+\frac {\cos ^4(a+b x) \cot ^3(a+b x)}{4 b}-\frac {35 \operatorname {Subst}\left (\int \left (-1+x^2+\frac {1}{1+x^2}\right ) \, dx,x,\cot (a+b x)\right )}{8 b}\\ &=\frac {35 \cot (a+b x)}{8 b}-\frac {35 \cot ^3(a+b x)}{24 b}+\frac {7 \cos ^2(a+b x) \cot ^3(a+b x)}{8 b}+\frac {\cos ^4(a+b x) \cot ^3(a+b x)}{4 b}-\frac {35 \operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\cot (a+b x)\right )}{8 b}\\ &=\frac {35 x}{8}+\frac {35 \cot (a+b x)}{8 b}-\frac {35 \cot ^3(a+b x)}{24 b}+\frac {7 \cos ^2(a+b x) \cot ^3(a+b x)}{8 b}+\frac {\cos ^4(a+b x) \cot ^3(a+b x)}{4 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.26, size = 53, normalized size = 0.66 \[ \frac {420 (a+b x)+72 \sin (2 (a+b x))+3 \sin (4 (a+b x))-32 \cot (a+b x) \left (\csc ^2(a+b x)-10\right )}{96 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 89, normalized size = 1.11 \[ -\frac {6 \, \cos \left (b x + a\right )^{7} + 21 \, \cos \left (b x + a\right )^{5} - 140 \, \cos \left (b x + a\right )^{3} - 105 \, {\left (b x \cos \left (b x + a\right )^{2} - b x\right )} \sin \left (b x + a\right ) + 105 \, \cos \left (b x + a\right )}{24 \, {\left (b \cos \left (b x + a\right )^{2} - b\right )} \sin \left (b x + a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 68, normalized size = 0.85 \[ \frac {105 \, b x + 105 \, a + \frac {3 \, {\left (11 \, \tan \left (b x + a\right )^{3} + 13 \, \tan \left (b x + a\right )\right )}}{{\left (\tan \left (b x + a\right )^{2} + 1\right )}^{2}} + \frac {8 \, {\left (9 \, \tan \left (b x + a\right )^{2} - 1\right )}}{\tan \left (b x + a\right )^{3}}}{24 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 94, normalized size = 1.18 \[ \frac {-\frac {\cos ^{9}\left (b x +a \right )}{3 \sin \left (b x +a \right )^{3}}+\frac {2 \left (\cos ^{9}\left (b x +a \right )\right )}{\sin \left (b x +a \right )}+2 \left (\cos ^{7}\left (b x +a \right )+\frac {7 \left (\cos ^{5}\left (b x +a \right )\right )}{6}+\frac {35 \left (\cos ^{3}\left (b x +a \right )\right )}{24}+\frac {35 \cos \left (b x +a \right )}{16}\right ) \sin \left (b x +a \right )+\frac {35 b x}{8}+\frac {35 a}{8}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 75, normalized size = 0.94 \[ \frac {105 \, b x + 105 \, a + \frac {105 \, \tan \left (b x + a\right )^{6} + 175 \, \tan \left (b x + a\right )^{4} + 56 \, \tan \left (b x + a\right )^{2} - 8}{\tan \left (b x + a\right )^{7} + 2 \, \tan \left (b x + a\right )^{5} + \tan \left (b x + a\right )^{3}}}{24 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.58, size = 56, normalized size = 0.70 \[ \frac {35\,x}{8}+\frac {{\cos \left (a+b\,x\right )}^4\,\left (\frac {35\,{\mathrm {tan}\left (a+b\,x\right )}^6}{8}+\frac {175\,{\mathrm {tan}\left (a+b\,x\right )}^4}{24}+\frac {7\,{\mathrm {tan}\left (a+b\,x\right )}^2}{3}-\frac {1}{3}\right )}{b\,{\mathrm {tan}\left (a+b\,x\right )}^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 14.83, size = 141, normalized size = 1.76 \[ \begin {cases} \frac {35 x \sin ^{4}{\left (a + b x \right )}}{8} + \frac {35 x \sin ^{2}{\left (a + b x \right )} \cos ^{2}{\left (a + b x \right )}}{4} + \frac {35 x \cos ^{4}{\left (a + b x \right )}}{8} + \frac {35 \sin ^{3}{\left (a + b x \right )} \cos {\left (a + b x \right )}}{8 b} + \frac {175 \sin {\left (a + b x \right )} \cos ^{3}{\left (a + b x \right )}}{24 b} + \frac {7 \cos ^{5}{\left (a + b x \right )}}{3 b \sin {\left (a + b x \right )}} - \frac {\cos ^{7}{\left (a + b x \right )}}{3 b \sin ^{3}{\left (a + b x \right )}} & \text {for}\: b \neq 0 \\\frac {x \cos ^{8}{\relax (a )}}{\sin ^{4}{\relax (a )}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________